import 'dart:collection';

import 'package:simulator/typedef/notifier.dart';

class RAM {
  static final RAM _instance = RAM._internal();
  RAM._internal();

  static RAM getInstance() => _instance;

  static late LinkedList<NotifierWithReturn> notifiers;

  void precopyInfrastructureInit() {
    notifiers = LinkedList();
  }
}

class PostCopyRAM {
  static final PostCopyRAM _instance = PostCopyRAM._internal();
  PostCopyRAM._internal();

  static PostCopyRAM getInstance() => _instance;

  static late LinkedList<NotifierWithReturn> notifiers;

  void postcopyInfrastructureInit() {
    notifiers = LinkedList();
  }
}
